<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Схема разработана Управлением актуализации и модернизации руководств по структурированным электронным медицинским документам (СЭМД) 2023 -->
<!-- Включены элементы разработанные Health Level Seven -->
<xsd:schema xmlns="urn:hl7-org:v3" xmlns:address="urn:hl7-ru:address" xmlns:fias="urn:hl7-ru:fias" xmlns:identity="urn:hl7-ru:identity" elementFormDefault="qualified" targetNamespace="urn:hl7-org:v3" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:import schemaLocation="fias.xsd" namespace="urn:hl7-ru:fias" />
  <xsd:import schemaLocation="address.xsd" namespace="urn:hl7-ru:address" />
  <xsd:import schemaLocation="identity.xsd" namespace="urn:hl7-ru:identity" />
  <xsd:include schemaLocation="coreschemas/datatypes.xsd" />
  <xsd:include schemaLocation="coreschemas/voc.xsd" />
  <xsd:include schemaLocation="coreschemas/NarrativeBlock.xsd" />
  <xsd:complexType name="POCD_MT000040.Component2">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="structuredBody" type="structuredBody_244" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="structuredBody_244">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="28" name="component" type="component_245" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="component_245">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="section" type="section_246" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="section_246">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_247" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="entry" type="entry_248" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_247">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="PATINFO" />
          <xsd:enumeration value="AMBS" />
          <xsd:enumeration value="ANAM" />
          <xsd:enumeration value="LANAM" />
          <xsd:enumeration value="SOCANAM" />
          <xsd:enumeration value="OBSTETRICANAMN" />
          <xsd:enumeration value="EPIDEM" />
          <xsd:enumeration value="ALL" />
          <xsd:enumeration value="BENEFITS" />
          <xsd:enumeration value="AMBSV" />
          <xsd:enumeration value="DGN" />
          <xsd:enumeration value="RESCONS" />
          <xsd:enumeration value="CONSILIUMDECISION" />
          <xsd:enumeration value="COMMISSION" />
          <xsd:enumeration value="RESLAB" />
          <xsd:enumeration value="RESINSTR" />
          <xsd:enumeration value="GISTRESULT" />
          <xsd:enumeration value="DRUG" />
          <xsd:enumeration value="IMM" />
          <xsd:enumeration value="MEDDEVICE" />
          <xsd:enumeration value="SUR" />
          <xsd:enumeration value="ELSEPROCEDURE" />
          <xsd:enumeration value="VITALPARAM" />
          <xsd:enumeration value="SCORES" />
          <xsd:enumeration value="COMPLICATIONS" />
          <xsd:enumeration value="SERVICES" />
          <xsd:enumeration value="REGIME" />
          <xsd:enumeration value="LINKDOCS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.197" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.23" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="entry_248">
    <xsd:sequence>
      <xsd:choice minOccurs="1">
        <xsd:element minOccurs="1" maxOccurs="1" name="act" type="act_841" />
        <xsd:element minOccurs="1" maxOccurs="1" name="encounter" type="encounter_414" />
        <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_249" />
        <xsd:element minOccurs="1" maxOccurs="1" name="organizer" type="organizer_928" />
        <xsd:element minOccurs="1" maxOccurs="1" name="substanceAdministration" type="substanceAdministration_809" />
      </xsd:choice>
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="observation_249">
    <xsd:sequence>
      <xsd:element minOccurs="0" maxOccurs="1" name="id" type="id_458" />
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_250" />
      <xsd:element minOccurs="0" maxOccurs="1" name="text" type="ED" />
      <xsd:element minOccurs="0" maxOccurs="1" name="effectiveTime" type="effectiveTime_312" />
      <xsd:element minOccurs="0" maxOccurs="1" name="value" type="ANY" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="performer" type="performer_673" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="participant" type="participant_390" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="entryRelationship" type="entryRelationship_288" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_250">
    <xsd:sequence minOccurs="0">
      <xsd:element minOccurs="0" maxOccurs="1" name="originalText" type="ED" />
    </xsd:sequence>
    <xsd:attribute name="code" type="cs" use="optional" />
    <xsd:attribute name="codeSystem" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.166" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.41" />
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.780" />
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.941" />
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1437" />
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1471" />
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1070" />
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.785" />
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1514" />
		      <xsd:enumeration value="1.2.643.5.1.13.13.11.1078" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="optional" />
    <xsd:attribute name="codeSystemVersion" type="st" use="optional" />
    <xsd:attribute name="displayName" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="entryRelationship_288">
    <xsd:sequence>
      <xsd:choice minOccurs="1">
        <xsd:element minOccurs="1" maxOccurs="1" name="act" type="act_289" />
        <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_317" />
        <xsd:element minOccurs="1" maxOccurs="1" name="substanceAdministration" type="substanceAdministration_894" />
      </xsd:choice>
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipEntryRelationship">
          <xsd:enumeration value="REFR" />
          <xsd:enumeration value="COMP" />
          <xsd:enumeration value="MFST" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="inversionInd" type="bl" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="act_289">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="id" type="id_290" />
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_291" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActClassDocumentEntryAct">
          <xsd:enumeration value="ACT" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_DocumentActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="id_290">
    <xsd:attribute name="root" type="uid" use="required" />
    <xsd:attribute name="extension" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_291">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.197" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.23" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_312">
    <xsd:sequence minOccurs="0">
      <xsd:element minOccurs="0" maxOccurs="1" name="low" type="low_313" />
      <xsd:element minOccurs="0" maxOccurs="1" name="high" type="high_314" />
    </xsd:sequence>
    <xsd:attribute name="value" type="ts" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="low_313">
    <xsd:attribute name="value" type="ts" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="high_314">
    <xsd:attribute name="value" type="ts" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="observation_317">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_318" />
      <xsd:choice minOccurs="0">
        <xsd:element minOccurs="0" maxOccurs="1" name="text" type="ED" />
        <xsd:element minOccurs="1" maxOccurs="1" name="effectiveTime" type="effectiveTime_340" />
      </xsd:choice>
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="entryRelationship" type="entryRelationship_333" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_318">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.166" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.41" />
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1077" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="entryRelationship_333">
    <xsd:sequence>
      <xsd:choice minOccurs="1">
        <xsd:element minOccurs="1" maxOccurs="1" name="act" type="act_983" />
        <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_334" />
      </xsd:choice>
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipEntryRelationship">
          <xsd:enumeration value="COMP" />
          <xsd:enumeration value="REFR" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="inversionInd" type="bl" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="observation_334">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_335" />
      <xsd:choice minOccurs="0">
        <xsd:element minOccurs="0" maxOccurs="1" name="text" type="ED" />
        <xsd:element minOccurs="0" maxOccurs="1" name="effectiveTime" type="effectiveTime_487" />
      </xsd:choice>
      <xsd:element minOccurs="0" maxOccurs="1" name="value" type="ANY" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="entryRelationship" type="entryRelationship_489" />
      <xsd:element minOccurs="0" maxOccurs="1" name="referenceRange" type="referenceRange_759" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_335">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="8041" />
          <xsd:enumeration value="4083" />
          <xsd:enumeration value="7026" />
          <xsd:enumeration value="12014" />
          <xsd:enumeration value="823" />
          <xsd:enumeration value="824" />
          <xsd:enumeration value="12120" />
          <xsd:enumeration value="8004" />
          <xsd:enumeration value="6021" />
          <xsd:enumeration value="12303" />
          <xsd:enumeration value="8037" />
          <xsd:enumeration value="12302" />
          <xsd:enumeration value="12407" />
          <xsd:enumeration value="9061" />
          <xsd:enumeration value="9062" />
          <xsd:enumeration value="6050" />
          <xsd:enumeration value="12304" />
          <xsd:enumeration value="9066" />
          <xsd:enumeration value="9067" />
          <xsd:enumeration value="8045" />
          <xsd:enumeration value="8102" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.166" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.41" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_340">
    <xsd:attribute name="value" type="ts" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="translation_342">
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="53" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1358" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="participant_390">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="participantRole" type="participantRole_391" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ParticipationType">
          <xsd:enumeration value="IND" />
          <xsd:enumeration value="DEV" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="participantRole_391">
    <xsd:sequence>
      <xsd:choice minOccurs="1">
        <xsd:element minOccurs="1" maxOccurs="1" name="playingDevice" type="playingDevice_890" />
        <xsd:element minOccurs="1" maxOccurs="1" name="playingEntity" type="playingEntity_392" />
      </xsd:choice>
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" type="RoleClassRoot" use="required" />
  </xsd:complexType>
  <xsd:complexType name="playingEntity_392">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_393" />
      <xsd:element minOccurs="0" maxOccurs="1" name="desc" type="st" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" type="EntityClassRoot" use="required" />
  </xsd:complexType>
  <xsd:complexType name="code_393">
    <xsd:attribute name="code" type="cs" use="optional" />
    <xsd:attribute name="codeSystem" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1367" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="optional" />
    <xsd:attribute name="codeSystemVersion" type="st" use="optional" />
    <xsd:attribute name="displayName" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="encounter_414">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="effectiveTime" type="effectiveTime_415" />
      <xsd:element minOccurs="1" maxOccurs="1" name="performer" type="performer_418" />
      <xsd:element minOccurs="1" maxOccurs="1" name="participant" type="participant_422" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="entryRelationship" type="entryRelationship_425" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClass">
          <xsd:enumeration value="ENC" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_DocumentEncounterMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_415">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="low" type="low_416" />
      <xsd:element minOccurs="1" maxOccurs="1" name="high" type="high_417" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="low_416">
    <xsd:attribute name="value" type="ts" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="high_417">
    <xsd:attribute name="value" type="ts" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="performer_418">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="modeCode" type="modeCode_419" />
      <xsd:element minOccurs="1" maxOccurs="1" name="assignedEntity" type="assignedEntity_420" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="modeCode_419">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.368" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="assignedEntity_420">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="id" type="id_421" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="id_421">
    <xsd:attribute name="root" type="uid" use="required" />
    <xsd:attribute name="extension" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="participant_422">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="participantRole" type="participantRole_423" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ParticipationType">
          <xsd:enumeration value="LOC" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="participantRole_423">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_424" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="RoleClassRoot">
          <xsd:enumeration value="SDLOC" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_424">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1008" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="entryRelationship_425">
    <xsd:sequence>
      <xsd:choice minOccurs="1">
        <xsd:element minOccurs="1" maxOccurs="1" name="act" type="act_450" />
        <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_426" />
      </xsd:choice>
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipEntryRelationship">
          <xsd:enumeration value="COMP" />
          <xsd:enumeration value="REFR" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="inversionInd" type="bl" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="observation_426">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_427" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_427">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="835" />
          <xsd:enumeration value="836" />
          <xsd:enumeration value="837" />
          <xsd:enumeration value="6020" />
          <xsd:enumeration value="11064" />
          <xsd:enumeration value="807" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.166" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.41" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="act_450">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="id" type="id_451" />
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_452" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActClassDocumentEntryAct">
          <xsd:enumeration value="ACT" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_DocumentActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="id_451">
    <xsd:attribute name="root" type="uid" use="required" />
    <xsd:attribute name="extension" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_452">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.197" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.23" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="id_458">
    <xsd:attribute name="root" type="uid" use="required" />
    <xsd:attribute name="extension" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_487">
    <xsd:sequence minOccurs="0">
      <xsd:element minOccurs="1" maxOccurs="1" name="low" type="low_416" />
      <xsd:element minOccurs="1" maxOccurs="1" name="high" type="high_417" />
    </xsd:sequence>
    <xsd:attribute name="value" type="ts" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="entryRelationship_489">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_490" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipEntryRelationship">
          <xsd:enumeration value="COMP" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="observation_490">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_491" />
      <xsd:element minOccurs="0" maxOccurs="1" name="effectiveTime" type="effectiveTime_582" />
      <xsd:element minOccurs="0" maxOccurs="1" name="value" type="ANY" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="entryRelationship" type="entryRelationship_544" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_491">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.166" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.41" />
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1514" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="translation_497">
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1358" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="low_502">
    <xsd:attribute name="value" type="ts" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="high_503">
    <xsd:attribute name="value" type="ts" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="entryRelationship_544">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_545" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipEntryRelationship">
          <xsd:enumeration value="COMP" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="observation_545">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_546" />
      <xsd:element minOccurs="0" maxOccurs="1" name="effectiveTime" type="effectiveTime_588" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_546">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="9063" />
          <xsd:enumeration value="8020" />
          <xsd:enumeration value="8019" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.166" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.41" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_582">
    <xsd:attribute name="value" type="ts" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="translation_584">
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1358" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_588">
    <xsd:attribute name="value" type="ts" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="performer_673">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="modeCode" type="modeCode_674" />
      <xsd:element minOccurs="1" maxOccurs="1" name="assignedEntity" type="assignedEntity_675" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="modeCode_674">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.368" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="assignedEntity_675">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="id" type="id_676" />
      <xsd:element minOccurs="0" maxOccurs="1" name="code" type="code_677" />
      <xsd:element minOccurs="0" maxOccurs="1" name="telecom" type="telecom_678" />
      <xsd:element minOccurs="0" maxOccurs="1" name="assignedPerson" type="assignedPerson_679" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="id_676">
    <xsd:attribute name="root" type="uid" use="optional" />
    <xsd:attribute name="extension" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="code_677">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1002" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="telecom_678">
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="value" type="url" use="required" />
    <xsd:attribute name="use" type="set_TelecommunicationAddressUse" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="assignedPerson_679">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="name" type="name_680" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="name_680">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="family" type="st" />
      <xsd:element minOccurs="1" maxOccurs="1" name="given" type="st" />
      <xsd:element minOccurs="0" maxOccurs="1" ref="identity:Patronymic" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="referenceRange_759">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="observationRange" type="observationRange_760" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="observationRange_760">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="text" type="ST" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="substanceAdministration_809">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="id" type="id_810" />
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_811" />
      <xsd:element minOccurs="0" maxOccurs="1" name="text" type="ED" />
      <xsd:element minOccurs="2" maxOccurs="2" name="effectiveTime" type="SXCM_TS" />
      <xsd:element minOccurs="1" maxOccurs="1" name="routeCode" type="routeCode_819" />
      <xsd:element minOccurs="1" maxOccurs="1" name="doseQuantity" type="doseQuantity_820" />
      <xsd:element minOccurs="0" maxOccurs="1" name="administrationUnitCode" type="administrationUnitCode_822" />
      <xsd:element minOccurs="1" maxOccurs="1" name="consumable" type="consumable_823" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="entryRelationship" type="entryRelationship_833" />
      <xsd:element minOccurs="0" maxOccurs="1" name="precondition" type="precondition_829" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClass">
          <xsd:enumeration value="SBADM" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_DocumentSubstanceMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="id_810">
    <xsd:attribute name="root" type="uid" use="required" />
    <xsd:attribute name="extension" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_811">
    <xsd:attribute name="nullFlavor" use="required">
      <xsd:simpleType>
        <xsd:restriction base="NullFlavor">
          <xsd:enumeration value="NI" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="width_814">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="translation" type="translation_815" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="unit" type="cs" use="required" />
  </xsd:complexType>
  <xsd:complexType name="translation_815">
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1358" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="period_817">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="translation" type="translation_818" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="unit" type="cs" use="required" />
  </xsd:complexType>
  <xsd:complexType name="translation_818">
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1358" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="routeCode_819">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1468" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="doseQuantity_820">
    <xsd:sequence>
      <xsd:element minOccurs="0" maxOccurs="1" name="translation" type="translation_821" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="unit" type="cs" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="translation_821">
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1358" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="administrationUnitCode_822">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1466" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="consumable_823">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="manufacturedProduct" type="manufacturedProduct_824" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ParticipationType">
          <xsd:enumeration value="CSM" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="manufacturedProduct_824">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="manufacturedMaterial" type="manufacturedMaterial_825" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="RoleClassManufacturedProduct">
          <xsd:enumeration value="MANU" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="manufacturedMaterial_825">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_826" />
      <xsd:element minOccurs="0" maxOccurs="1" name="name" type="ST" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="EntityClassManufacturedMaterial">
          <xsd:enumeration value="MMAT" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="determinerCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="EntityDeterminerDetermined">
          <xsd:enumeration value="KIND" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_826">
    <xsd:sequence minOccurs="0">
      <xsd:element minOccurs="0" maxOccurs="1" name="translation" type="translation_827" />
    </xsd:sequence>
    <xsd:attribute name="code" type="cs" use="optional" />
    <xsd:attribute name="codeSystem" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.611" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="optional" />
    <xsd:attribute name="codeSystemVersion" type="st" use="optional" />
    <xsd:attribute name="displayName" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="translation_827">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1367" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="precondition_829">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="criterion" type="criterion_830" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActRelationshipType">
          <xsd:enumeration value="PRCN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="criterion_830">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_831" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_831">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="ASSERTION" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="2.16.840.1.113883.5.4" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="entryRelationship_833">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="act" type="act_834" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipEntryRelationship">
          <xsd:enumeration value="REFR" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="inversionInd" use="required">
      <xsd:simpleType>
        <xsd:restriction base="bl">
          <xsd:pattern value="false" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="act_834">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="id" type="id_835" />
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_836" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActClassDocumentEntryAct">
          <xsd:enumeration value="ACT" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_DocumentActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="id_835">
    <xsd:attribute name="root" type="uid" use="required" />
    <xsd:attribute name="extension" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_836">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.197" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.23" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="act_841">
    <xsd:sequence>
      <xsd:element minOccurs="0" maxOccurs="1" name="id" type="id_855" />
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_842" />
      <xsd:element minOccurs="0" maxOccurs="1" name="text" type="ED" />
      <xsd:element minOccurs="1" maxOccurs="1" name="effectiveTime" type="effectiveTime_845" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="entryRelationship" type="entryRelationship_846" />
      <xsd:element minOccurs="0" maxOccurs="1" name="reference" type="reference_1035" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActClassDocumentEntryAct">
          <xsd:enumeration value="ACT" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_DocumentActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_842">
    <xsd:sequence minOccurs="0">
      <xsd:element minOccurs="0" maxOccurs="1" name="originalText" type="ED" />
    </xsd:sequence>
    <xsd:attribute name="code" type="cs" use="optional" />
    <xsd:attribute name="codeSystem" type="uid" use="optional" />
    <xsd:attribute name="codeSystemName" type="st" use="optional" />
    <xsd:attribute name="codeSystemVersion" type="st" use="optional" />
    <xsd:attribute name="displayName" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_845">
    <xsd:attribute name="value" type="ts" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="entryRelationship_846">
    <xsd:sequence>
      <xsd:choice minOccurs="1">
        <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_861" />
      </xsd:choice>
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipEntryRelationship">
          <xsd:enumeration value="REFR" />
          <xsd:enumeration value="COMP" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="inversionInd" type="bl" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="id_855">
    <xsd:attribute name="root" type="uid" use="required" />
    <xsd:attribute name="extension" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="observation_861">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_862" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_862">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="11002" />
          <xsd:enumeration value="11003" />
          <xsd:enumeration value="6058" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.166" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.41" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="playingDevice_890">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_891" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_891">
    <xsd:sequence minOccurs="0">
      <xsd:element minOccurs="0" maxOccurs="1" name="originalText" type="ED" />
    </xsd:sequence>
    <xsd:attribute name="code" type="cs" use="optional" />
    <xsd:attribute name="codeSystem" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1048" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="optional" />
    <xsd:attribute name="codeSystemVersion" type="st" use="optional" />
    <xsd:attribute name="displayName" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="substanceAdministration_894">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="consumable" type="consumable_895" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClass">
          <xsd:enumeration value="SBADM" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_DocumentSubstanceMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="consumable_895">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="manufacturedProduct" type="manufacturedProduct_896" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ParticipationType">
          <xsd:enumeration value="CSM" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="manufacturedProduct_896">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="manufacturedLabeledDrug" type="manufacturedLabeledDrug_897" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="RoleClassManufacturedProduct">
          <xsd:enumeration value="MANU" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="manufacturedLabeledDrug_897">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_898" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_898">
    <xsd:sequence minOccurs="0">
      <xsd:element minOccurs="0" maxOccurs="1" name="originalText" type="ED" />
    </xsd:sequence>
    <xsd:attribute name="code" type="cs" use="optional" />
    <xsd:attribute name="codeSystem" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1033" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="optional" />
    <xsd:attribute name="codeSystemVersion" type="st" use="optional" />
    <xsd:attribute name="displayName" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="organizer_928">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="id" type="id_929" />
      <xsd:element minOccurs="1" maxOccurs="1" name="statusCode" type="statusCode_930" />
      <xsd:element minOccurs="1" maxOccurs="1" name="effectiveTime" type="effectiveTime_931" />
      <xsd:element minOccurs="0" maxOccurs="1" name="precondition" type="precondition_932" />
      <xsd:element minOccurs="1" maxOccurs="2" name="component" type="component_936" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActClassDocumentEntryOrganizer">
          <xsd:enumeration value="CLUSTER" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="id_929">
    <xsd:attribute name="root" type="uid" use="required" />
    <xsd:attribute name="extension" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="statusCode_930">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="completed" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_931">
    <xsd:attribute name="value" type="ts" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="precondition_932">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="criterion" type="criterion_933" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActRelationshipType">
          <xsd:enumeration value="PRCN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="criterion_933">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_934" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_934">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="ASSERTION" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="2.16.840.1.113883.5.4" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="component_936">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_937" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActRelationshipHasComponent">
          <xsd:enumeration value="COMP" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="observation_937">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_938" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
      <xsd:element minOccurs="0" maxOccurs="2" name="entryRelationship" type="entryRelationship_941" />
      <xsd:element minOccurs="0" maxOccurs="1" name="referenceRange" type="referenceRange_949" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_938">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.262" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="translation_940">
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1358" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="entryRelationship_941">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_942" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipEntryRelationship">
          <xsd:enumeration value="COMP" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="observation_942">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_943" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_943">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="6034" />
          <xsd:enumeration value="8034" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.166" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.41" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="referenceRange_949">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="observationRange" type="observationRange_950" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="observationRange_950">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="text" type="ST" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="low_953">
    <xsd:sequence minOccurs="0">
      <xsd:element minOccurs="1" maxOccurs="1" name="translation" type="translation_954" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
    <xsd:attribute name="value" type="real" use="optional" />
    <xsd:attribute name="unit" type="cs" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="translation_954">
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1358" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="high_955">
    <xsd:sequence minOccurs="0">
      <xsd:element minOccurs="1" maxOccurs="1" name="translation" type="translation_956" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
    <xsd:attribute name="value" type="real" use="optional" />
    <xsd:attribute name="unit" type="cs" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="translation_956">
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1358" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="translation_967">
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1358" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="act_983">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="id" type="id_984" />
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_985" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActClassDocumentEntryAct">
          <xsd:enumeration value="ACT" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_DocumentActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="id_984">
    <xsd:attribute name="root" type="uid" use="required" />
    <xsd:attribute name="extension" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_985">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="VITALPARAM" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.197" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.23" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="reference_1035">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="externalDocument" type="externalDocument_1036" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipExternalReference">
          <xsd:enumeration value="REFR" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="externalDocument_1036">
    <xsd:sequence>
      <xsd:element minOccurs="2" maxOccurs="2" name="id" type="id_1037" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassDocument">
          <xsd:enumeration value="DOCCLIN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="id_1037">
    <xsd:attribute name="root" type="uid" use="optional" />
    <xsd:attribute name="extension" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
</xsd:schema>